<template>
  <div>这是child子组件 - {{ count }} - <button @click="fn">btn</button></div>
</template>

<script>
export default {
  data() {
    return {
      count: 10,
    };
  },
  methods: {
    fn() {
      this.count++;
    },
  },
  mounted() {
    fetch(
      "/api/mmdb/movie/v3/list/hot.json?ct=%E5%A4%A9%E6%B4%A5&ci=40&channelId=4"
    )
      .then((response) => response.json())
      .then((res) => {
        console.log(res);
      });
  },
};
</script>
